using System;
using System.Collections.Generic;
using System.Text;

namespace Noein.GeneticAlgorithm.Final
{
    public class Mutation
    {

        //chance of mutation
        float probability = .05F;

        /// <summary>
        /// Take an individual and mutate it.
        /// </summary>
        /// <param name="original"></param>
        /// <returns></returns>
        public Individual<LispLib.Interpreter.Pair, LispLib.Interpreter.Pair>
    mutate(Individual<LispLib.Interpreter.Pair, LispLib.Interpreter.Pair> original)
        {
            Individual<LispLib.Interpreter.Pair, LispLib.Interpreter.Pair> mutation = original;

           

            return mutation;

        }//mutate


        /// <summary>
        /// The probability of mutation can be set.
        /// </summary>
        /// <param name="f"></param>
        public void setProbability(float f)
        {
            probability = f;
        }
    }
}
